public with sharing class ActionFunctionSample {

    public String getT1() {
        t1=DateTime.now();
       return  String.valueOf(t1);
    }


    private Datetime t1 = System.now();

    String uname;

    public String getUsername() {
        return uname;
    }
            
    public PageReference sayHello() {
        uname = UserInfo.getName();
        return null;
    }
            
    public void setState(String n) {
        state = n;
    }
            
    public String getState() {
        return state;
    }
            
    public PageReference methodOne() {
        return null;
    }
            
    private String state = 'no';
    
    public String getTime(){
     t1= Datetime.now();
     return 'tes';
    }
    
    public void addRoles(){
    	User user= new User();
    	
    	UserRole role= new UserRole();
    	role.Name='testName';
    	role.ParentRoleId ='qq';
    }

}